<template>
	<div style="padding-bottom: 44px">
		<div class="live-banner"><video width="100%" height="100%" controls :src="zhibodizhi.liveurl">您的浏览器不支持Video标签。</video></div>
		<div></div>
		<div class="match-title"><img src="/static/images/rank.png" /></div>
		<div class="match-card" style="background-image: none;">
			<div class="match-title-tips">
				<i class="el-icon-refresh-right"></i>
				每隔1小时刷新
			</div>
			<Divider></Divider>
			<Table :data="paihangbang" style="width: 100%">
				<TableColumn prop="id" label="排名"></TableColumn>
				<TableColumn prop="name" label="姓名"></TableColumn>
				<TableColumn prop="intro" label="介绍"></TableColumn>
			</Table>
		</div>
	</div>
</template>
<script>
import { Divider, Table, TableColumn } from 'element-ui';
import { shipinzhibo } from '../../api/cms.js';

export default {
	components: {
		Divider,
		Table,
		TableColumn
	},
	data() {
		return {
			paihangbang: [],
			zhibodizhi: {}
		};
	},
	created() {
		shipinzhibo()
			.then(res => {
				this.paihangbang = res.data.data.paihangbang;
				this.zhibodizhi = res.data.data.zhibodizhi;
				console.log();
			})
			.catch(res => {
				console.log(res);
			});
	}
};
</script>
<style scoped>
.live-banner {
	width: 100%;
	height: 850px;
	background-color: #0143a0;
	min-width: 1440px;
}
.match-title {
	width: 1240px;
	margin: 84px auto 0;
	padding-left: 24px;
	padding-top: 10px;
	background: url(/static/images/match_line.png) no-repeat;
	background-position: right bottom;
	height: 124px;
}
.match-card {
	margin: 40px auto 0;
	border-radius: 25px;
	background-color: rgb(255, 255, 255);
	box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.2);
	width: 1240px;
	min-height: 406px;
	background-image: url(/static/images/match_card.png);
	background-size: 100% auto;
	background-position: right center;
	padding: 35px 50px;
	font-size: 16px;
	color: #000000;
	line-height: 30px;
}
.match-card >>> .el-divider--horizontal {
	margin-top: 0;
}
.match-title-tips {
	color: #0546a1;
	font-size: 18px;
	text-align: right;
}
</style>
